package com.mgm.dto.test;

import java.util.Arrays;
import java.util.List;

import com.mgm.pojo.Creative;
import com.mgm.pojo.CreativeOfApp;

public class Offer {
	
	private Integer adffId;
	private Integer advmentId;
	private Integer premium;
	private String offerId;
	private String country;
	private List<String> countries;
	
	private List<Creative> clist;
	private List<CreativeOfApp> calist;
	
	
	public String getCountry() {
		return country;
	}
	public void setCountry(String country) {
		this.country = country;
		if(country!=null) {
			String[] arr = country.split(",");
			setCountries(Arrays.asList(arr));
		}
	}
	public List<String> getCountries() {
		return countries;
	}
	public void setCountries(List<String> countries) {
		this.countries = countries;
	}
	public String getOfferId() {
		return offerId;
	}
	public void setOfferId(String offerId) {
		this.offerId = offerId;
	}
	public Integer getAdffId() {
		return adffId;
	}
	public void setAdffId(Integer adffId) {
		this.adffId = adffId;
	}
	public Integer getAdvmentId() {
		return advmentId;
	}
	public void setAdvmentId(Integer advmentId) {
		this.advmentId = advmentId;
	}
	public Integer getPremium() {
		return premium;
	}
	public void setPremium(Integer premium) {
		this.premium = premium;
	}
	public List<Creative> getClist() {
		return clist;
	}
	public void setClist(List<Creative> clist) {
		this.clist = clist;
	}
	public List<CreativeOfApp> getCalist() {
		return calist;
	}
	public void setCalist(List<CreativeOfApp> calist) {
		this.calist = calist;
	}
	 
	
}
